<?php

namespace app\common\model;

use think\model\concern\SoftDelete;

class SiteDemo extends \think\Model
{
    use SoftDelete;

    protected $table = 'db_site_demo';

    protected $jsonAssoc = true;

    protected $autoWriteTimestamp = true;

    protected $schema = [
        'id' => 'int',
        'create_time' => 'int',
        'update_time' => 'int',
        'delete_time' => 'int',
        'pubid' => 'varchar',
        'sort' => 'int',
        'name' => 'varchar',
        'column_interface' => 'varchar',
        'publishing_interface' => 'varchar',
        'headers' => 'varchar',
        'cookies' => 'varchar',
        'title_field' => 'varchar',
        'column_field' => 'varchar',
        'thumbnail_field' => 'varchar',
        'create_time_field' => 'varchar',
        'article_content_field' => 'varchar',
        'other_fields' => 'text',
        'publish_success_flag' => 'varchar',
        'logo_image' => 'varchar',
        'description_content' => 'longtext',
        'version' => 'varchar',
        'core_interface_file' => 'varchar',
        'interface_file' => 'varchar',
        'version_verification_interface' => 'varchar',
        'version_upgrade_interface' => 'varchar',
        'system_identification_url' => 'varchar',
        'tags_field' => 'varchar',
        'keywords_field' => 'varchar',
        'description_field' => 'varchar',
    ];

    public $getters = [
        
    ];

    /**
     * 关联模型site
     */
    public function site()
    {
        return $this->hasMany(Site::class );
    }
}
